/**
 * 项目示例-列表综合搜索
 * Date 2023-5-25 09:33:56
 */
import type { FilterItem } from '@/components/FilterBar/types'

export const exampleOptions: FilterItem[] = [
  {
    label: '设备类型',
    prop: 'typeName',
    type: 'input',
    inputProps: {
      clearable: true
    }
  },
  {
    label: '航站楼',
    prop: 'terminal',
    type: 'radio',
    span: 12,
    inputProps: {
      showCheckAll: false
    }
  }
]

export const dialogOptions: FilterItem[] = [
  {
    label: '父级分类', // 后续由接口获取下拉数据
    prop: 'parentTypeId',
    type: 'input',
    span: 24,
    defaultValue: '',
    isDisabled: true,
    inputProps: {
    }
  },
  {
    label: '设备类型',
    prop: 'typeName',
    type: 'input',
    span: 24,
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请输入设备类型'
    }
  },
  {
    label: '航站楼',
    prop: 'terminal',
    type: 'radio',
    span: 24,
    defaultValue: '',
    inputProps: {
      showCheckAll: false
      // options: [
      //   { label: 'T3航站楼24', value: '1' },
      //   { label: 'T3航站楼12', value: '2' },
      // ]
    }
  },
  {
    label: '归属科室',
    prop: 'tree',
    type: 'treeSelect',
    span: 24,
    inputProps: {
      'default-expand-all': true
    }
  }
]

export const dialogEditOptions: FilterItem[] = [
  {
    label: '父级分类', // 后续由接口获取下拉数据
    prop: 'parentTypeId',
    type: 'input',
    span: 24,
    defaultValue: '',
    isDisabled: true,
    inputProps: {

    }
  },
  {
    label: '设备类型',
    prop: 'typeName',
    type: 'input',
    span: 24,
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请输入设备类型'
    }
  },
  {
    label: '航站楼',
    prop: 'terminal',
    type: 'radio',
    defaultValue: '',
    inputProps: {
      showCheckAll: false
    }
  },
  {
    label: '归属科室',
    prop: 'tree',
    type: 'input',
    span: 24,
    isDisabled: true,
    // multiple:true,
    inputProps: {
      'default-expand-all': true
    }
  }
]

export const dialogAddChildrenOptions: FilterItem[] = [
  {
    label: '父级分类', // 后续由接口获取下拉数据
    prop: 'parentTypeId',
    type: 'input',
    span: 24,
    defaultValue: '',
    isDisabled: true,
    inputProps: {
    }
  },
  {
    label: '设备类型',
    prop: 'typeName',
    type: 'input',
    span: 24,
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请输入设备类型'
    }
  },
  {
    label: '航站楼',
    prop: 'terminal',
    type: 'radio',
    defaultValue: '',
    isDisabled: true,
    inputProps: {
      // showCheckAll: false,

    }
  },
  {
    label: '归属科室',
    prop: 'tree',
    type: 'input',
    span: 24,
    defaultValue: '',
    isDisabled: true,
    inputProps: {
      // 'default-expand-all': true,
    }
  }
]
